<?php 
session_start();
$_SESSION["prenom"] = $_POST["nom"];
echo $_SESSION["prenom"];
?>